package cn.zw.design.factory;

public abstract class FruitFactory {

	
	public  void  eat(String type){
		Fruit fruit = createFruit(type);
		fruit.eat();
	}
	
	
	public  abstract Fruit  createFruit(String type);
	
	
}
